<html>
<head>
    <meta charset="UTF-8">
    <title>云his工作平台</title>
    <link rel="stylesheet" type="text/css" href="/static/easyui/css/bootstrap/easyui.css">
    <script type="text/javascript" src="/static/jquery/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="/static/js/head.js"></script>
    <script type="text/javascript" src="/modules/finance/js/outpatientCost.js"></script>
    <script type="text/javascript" src="/static/data/data_charge_type.js"></script>
    <script type="text/javascript" src="/static/data/data_unit_contract.js"></script>
    <script type="text/javascript" src="/static/data/data_clinic_dept.js"></script>
    <script type="text/javascript" src="/static/data/data_page_doctor.js"></script>
</head>

<body onload="init()">

<table id="list" class="easyui-datagrid">

</table>
<div id="chargeDiv" closed="true" footer="#chargeDivButton" class="easyui-window" data-options="modal:true" title="门诊医师开单-门诊选择收费" style="width:70%;height:50%">
    <div class="easyui-layout"  style="width:100%;height:100%">
        <div data-options="region:'north'" style="height:50%">
            <table id="list-zhu" class="easyui-datagrid">

            </table>
        </div>
        <div data-options="region:'center'">
            <table id="list-xi" class="easyui-datagrid">

            </table>
        </div>
    </div>
</div>
<div id="chargeDivButton" class="fd-right">
    <button class="easyui-linkbutton" onclick="rowCount()">确定</button>&nbsp;<button class="easyui-linkbutton" onclick="closeWindow('chargeDiv')">取消</button>
</div>
<div id="contDiv" data-options="modal:true"  closed="true"  class="easyui-window" title="合计" style="width: 50%;height: 60%" >
    <div>
        <ul class="cost-li-top">
            <li><span>预交金余额：</span>0.00</li>
            <li><span>帐户累计：</span>0.00</li>
            <li><span>帐户余额：</span>0.00</li>
            <li><span>统筹支付：</span>0.00</li>
            <li><span>帐户支付：</span>0.00</li>
            <li><span>公务补助：</span>0.00</li>
            <li><span>单位记账：</span>0.00</li>
            <li><span>预交金支付：</span>0.00</li>
            <li><span>大额商保：</span>0.00</li>
            <li><span>自付：<input type="text" id="pay" class="validatebox-text"></span></li>
        </ul>
    </div>
    <div style="position:relative;">
        <div class="cost-total">
            <ul>
                <li><span class="rborder-cost">合计：<input type="text" id="totalCharge" class="validatebox-text" style="width:80px;"></span></li>
                <li><span class="rborder-cost">应收：<input type="text" id="receive" class="validatebox-text" style="width:80px;"/></span></li>
            </ul>
        </div>
        <div class="cost-tab-wrap">
            <table cellspacing="0" cellpadding="0" border="0" width="100%" class="cost-tab">
                <tr>
                    <td>类型</td>
                    <td>付款</td>
                    <td>收款</td>
                    <td>找零</td>
                </tr>
                <tr>
                    <td>现金</td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td></td>
                </tr>
                <tr>
                    <td>统筹挂帐</td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td></td>
                </tr>
                <tr>
                    <td>个帐支付</td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td><input type="text" class="validatebox-text"/></td>
                    <td></td>
                </tr>

            </table>
        </div>
        <div id="contDivButton" class="fd-right">
            <button class="easyui-linkbutton" onclick="confirmPay()">确定</button>&nbsp;<button class="easyui-linkbutton" onclick="closeWindow('contDiv')">取消</button>
        </div>
    </div>
</div>

<div id="returnsDiv" data-options="modal:true" closed="true"  class="easyui-window" title="退费"  style="width:70%;height:85%">

    <div class="easyui-layout"  style="width:100%;height:95%">
        <div data-options="region:'north'" style="height:30%">
            <form id="baseInfo">
            <table style="padding-left:20px; font-size:13px" class="medical-tab-new1">
                <tr style="height: 30px">
                    <td>门诊号：</td>
                    <td><input   class="easyui-textbox" name="clinicNo" id="backClinicNo"></td>
                    <td>序号：</td>
                    <td><input class="easyui-textbox" ></td>
                    <td>卡号：</td>
                    <td><input class="easyui-textbox"></td>
                    <td>收据号：</td>
                    <td><input class="easyui-textbox"></td>
                </tr>
                <tr style="height: 30px">
                    <td>姓名：</td>
                    <td colspan="3"><input class="easyui-textbox" style="width: 99%" name="name"></td>
                    <td>身份：</td>
                    <td><input  class="easyui-textbox" name="identity"></td>
                    <td>费别：</td>
                    <td><input  class="easyui-combobox" name="chargeType" ></td>
                </tr>
                <tr style="height: 30px">
                    <td>医生：</td>
                    <td colspan="3"><input class="easyui-textbox" style="width: 99%" name="consultingDoctor"></td>
                    <td>科室：</td>
                    <td><input  class="easyui-textbox"></td>
                    <td>合同单位：</td>
                    <td><input  class="easyui-textbox" name="unitInContract"></td>
                </tr>
            </table>
                <div id="backCharge" class="fd-right">
                    <button class="easyui-linkbutton" onclick="confirmBackCharge()">确认退费</button>
                </div>
            </form>
        </div>
        <div data-options="region:'east'" style="width:60%">
            <table id="list-xi-t" class="easyui-datagrid">

            </table>
        </div>
        <div data-options="region:'center'">
            <table id="list-zhu-t" class="easyui-datagrid">

            </table>
        </div>

    </div>

</div>
<div id="tb">
<form id="xiForm" onsubmit="return false;">
    <table style="padding-left:20px; font-size:13px" class="medical-tab-new1">
        <tr style="height: 30px">
            <td>门诊号：</td>
            <td><input  class="easyui-textbox"  id="clinicNoId"  name="clinic_no"></td>
            <td>序号：</td>
            <td><input  class="easyui-textbox"  name="visitno" data-options="disabled:true"></td>
            <td>卡号：</td>
            <td><input class="easyui-textbox" data-options="disabled:true"></td>
            <td>账号：</td>
            <td><input class="easyui-textbox" data-options="disabled:true"></td>
            <td>
                <!--<button class="easyui-linkbutton" data-options="iconCls:'icon-large-smartart'">市医保读卡</button>&nbsp;-->
                <!--<button class="easyui-linkbutton" data-options="iconCls:'icon-large-smartart'">读卡</button>&nbsp;-->
                <button class="easyui-linkbutton" data-options="iconCls:'icon-remove'" >退出</button>&nbsp;<button class="easyui-linkbutton" data-options="iconCls:'icon-add'" id="addDrug" onclick="addDrugRow()">添加药品</button></td>
        </tr>
        <tr style="height: 30px">
            <td>姓名：</td>
            <td><input class="easyui-textbox" name="name" data-options="disabled:true"></td>
            <td>身份：</td>
            <td><input  class="easyui-textbox" name="identity" data-options="disabled:true"></td>
            <td>费别：</td>
            <td><input  class="easyui-combobox" name="chargetype" id="chargeTypeId" data-options="disabled:true"></td>
            <td>账户余额：</td>
            <td colspan="2"><input   class="easyui-textbox" data-options="disabled:true"></td>
        </tr>
        <tr style="height: 30px">
            <td>医生：</td>
            <td><input class="easyui-textbox" name="doctor" data-options="disabled:true"></td>
            <td>科室：</td>
            <td><input  class="easyui-combobox" name="visitdept" id="visitDeptId" data-options="disabled:true"></td>
            <td>职称：</td>
            <td><input  class="easyui-textbox" data-options="disabled:true"></td>
            <td>合同单位：</td>
            <td colspan="3"><input  class="easyui-combobox" name="unit_in_contract" name="unitInContractId" data-options="disabled:true"></td>
        </tr>
    </table>
</form>
</div>

<div id="fb" style=" height: 40px" align="right">
    <table>
        <tr align="center">
           <td >
               <a  id="addBtn" class="easyui-linkbutton"  onclick="showContDiv()" iconCls="icon-ok">合计</a>
               <a  id="seaBtn" class="easyui-linkbutton" iconCls="icon-cancel">清屏</a>
               <a  id="moneyBtn" class="easyui-linkbutton" iconCls="icon-reload">刷新标价</a>
               <a  id="editBtn" class="easyui-linkbutton" iconCls="icon-ok">报价</a>
               <a  id="delBtn" class="easyui-linkbutton" iconCls="icon-ok">计价单</a>
               <a  id="saveBtn" class="easyui-linkbutton" iconCls="icon-add">新单</a>
               <a  id="printBtn" class="easyui-linkbutton"  onclick="showReturnsDiv()" iconCls="icon-remove">退费</a>
               <a  id="cancelBtn" class="easyui-linkbutton" iconCls="icon-large-smartart">读卡</a>
           </td>
        </tr>
    </table>
</div>
</body>
</html>                                                                                                                                                                                                                                                                                                                  